// pages/index/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    background: ['https://cdn8.axureshop.com/demo/2208121/images/%E4%BD%9C%E5%93%81%E9%A6%96%E9%A1%B5/u121.png', 'https://cdn8.axureshop.com/demo/2208121/images/%E4%BD%9C%E5%93%81%E9%A6%96%E9%A1%B5/u121.png'],
    indicatorDots: false,
    vertical: false,
    autoplay: true,
    interval: 5000,
    duration: 500,
    tab:0 , //首页导航栏切换
    tabNavs: [
        {
            title:'门诊',
            navs:[
                {
                    imgs:'',
                    text:'门诊报告'
                },
                {
                    imgs:'',
                    text:'候诊查询'
                },
                {
                    imgs:'',
                    text:'自助开单'
                },
                {
                    imgs:'',
                    text:'医技预约'
                },
                {
                    imgs:'',
                    text:'我的复诊'
                },
                {
                    imgs:'',
                    text:'自助取号'
                },
                {
                    imgs:'',
                    text:'门诊导诊单'
                },
                {
                    imgs:'',
                    text:'电子票据'
                }
            ]
        },
        {
            title:'住院',
            navs:[
                {
                    imgs:'',
                    text:'入院登记'
                },
                {
                    imgs:'',
                    text:'住院预交'
                },
                {
                    imgs:'',
                    text:'住院报告'
                },
                {
                    imgs:'',
                    text:'住院日清单'
                },
                {
                    imgs:'',
                    text:'住院陪护证'
                },
            ]
        },
        {
            title:'综合',
            navs:[
                {
                    imgs:'',
                    text:'代寄服务'
                },
                {
                    imgs:'',
                    text:'中药代煎'
                },
                {
                    imgs:'',
                    text:'价目查询'
                },
                {
                    imgs:'',
                    text:'就医指南'
                },
                {
                    imgs:'',
                    text:'满意度调查'
                },
                {
                    imgs:'',
                    text:'楼层分布'
                },
            ]
        }
    ]
  },
  tabNav(event){
      this.setData({
        tab:event.currentTarget.dataset.tab
      })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})